package cn.wx.scholar.core.entity;

import java.io.UnsupportedEncodingException;
import com.baomidou.mybatisplus.annotations.TableName;
import cn.wx.common.persistence.base.BaseEntity;

/**
 * <p>
 * 
 * </p>
 *
 * @author  
 * @since 2018-07-17
 */
@TableName("sch_paper")
public class Paper extends BaseEntity {

	private String year;


	private String title;


	private String doi;


	private byte[] url;


	private String publisher;


	private String keywords;

	/**
	 *  "doc_type": "Conference"    会议
	*
	*	"doc_type": "Journal"    期刊
	*"doc_type": "BookReferenceEntry"    图书引文
	 */
	private String docType;


	private String fos;


	private String venue;


	private String fAbstract;

	private String fAuthors;


	public String getYear() {
		return year;
	}

	public void setYear(String year) {
		this.year = year;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDoi() {
		return doi;
	}

	public void setDoi(String doi) {
		this.doi = doi;
	}

	public byte[] getUrl() {
		return url;
	}

	public String[] getUrl_() {
		try {
			String[] r = null;
			if(url != null){
				String u = new String(url,"utf-8");
				r = u.split(",");
			}
			return r;
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		return null;
	}
	
	public void setUrl(byte[] url) {
		this.url = url;
	}

	public String getPublisher() {
		return publisher;
	}

	public void setPublisher(String publisher) {
		this.publisher = publisher;
	}

	public String getKeywords() {
		return keywords;
	}

	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}

	public String getDocType() {
		return docType;
	}

	public void setDocType(String docType) {
		this.docType = docType;
	}

	public String getFos() {
		return fos;
	}

	public void setFos(String fos) {
		this.fos = fos;
	}

	public String getVenue() {
		return venue;
	}

	public void setVenue(String venue) {
		this.venue = venue;
	}

	public String getfAbstract() {
		return fAbstract;
	}

	public void setfAbstract(String fAbstract) {
		this.fAbstract = fAbstract;
	}


	public String getfAuthors() {
		return fAuthors;
	}

	public void setfAuthors(String fAuthors) {
		this.fAuthors = fAuthors;
	}
	
}
